package game;

import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.event.MouseEvent;
import java.util.LinkedList;

public class Personagem extends GameObject{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public static int Money = 500;
	
	GameObject workerTecnico;
	GameObject workerAntena;
	GameObject workerPoste;
	
	GameObject moneySlot;
	GameObject money;
	
	public static int moneyValue;

	static int Tecnicos;
	static int ConsertaPoste;
	static int ConsertaAntena;
	boolean MouseReleased;

	
	public Personagem(Point position, Point size, int initialMoney)
	{
		super(position, size);

		moneyValue = initialMoney;
		
		workerTecnico = new GameObject(new Point(0, 500), new Point(100, 100));
		workerTecnico.setImage(25);
		
		moneySlot = new GameObject(new Point(600, 500), new Point(200, 100));
		moneySlot.setImage(26);
		
	}
	
	public void Update()
	{
		super.Update();
		
	}
	public void Draw(Graphics2D g2d)
	{
		super.draw(g2d);
		
		workerTecnico.draw(g2d);
		moneySlot.draw(g2d);
		g2d.setFont(LoadFonte.getFonte(1));
		g2d.drawString("" + Money, 670,560);
	}
}